# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0810-03.py
    ======================
    @descript: 
    @copyright:nnz
    @author:dln
    @date: 2021/8/10 19:28
    @version:v1.0
'''
#调用变量时    对象标识符.变量标识符     先查找对象变量，再查找类变量，再查找内置变量
class A:
    v_01='类变量'
    def __init__(self):
        self.v_01='对象变量'
        pass
    pass
v_object_01=A()
print(v_object_01.v_01)
print('_'*60)

v_01=10    #全局变量
def fun_01():
    v_01='局部变量'
    print(v_01)
    pass
fun_01()

class B:
    v_01='类变量'
    print(v_01)
    pass
print(B.v_01)
